package com.augurit.gzcgwsp.jzfqwczzpfsn.service;

import java.util.List;
import com.augurit.common.base.service.ICrudService;
import com.augurit.common.system.web.auth.form.LoginUserForm;
import com.augurit.gzcgwsp.jzfqwczzpfsn.entity.ReplyTemplate;
import com.augurit.gzcgwsp.jzfqwczzpfsn.entity.YwYnJzfqwczzPfsn;
import com.augurit.gzcgwsp.jzfqwczzpfsn.web.form.YwYnJzfqwczzPfsnForm;
import com.augurit.gzcgwsp.ywcmn.web.form.YwComSjcllistForm;

public interface IYwYnJzfqwczzPfsnService extends ICrudService<YwYnJzfqwczzPfsnForm, Long> {

	public List<YwYnJzfqwczzPfsn> getByAcceptNo(String acceptNo);

	/**
	 * 打印证书
	 * @param form
	 * @param context
	 * @return
	 */
	public String printZs(YwYnJzfqwczzPfsnForm form, String context);

	/**
	 * 获取收件材料
	 * @param form
	 * @return
	 */
	public List<YwComSjcllistForm> getSjcls(YwYnJzfqwczzPfsnForm form);
	
	public void changeYslState(Long id, Long state,String yslThyy);
	
	public String wfBusYslTuih(YwYnJzfqwczzPfsnForm form,LoginUserForm loginUser) throws Exception;

	/**
	 * 获取实体
	 * @param id
	 * @return
	 */
	public YwYnJzfqwczzPfsn getEntity(Long id);
	
	/**
	 * 保存实体
	 * @param form
	 */
	public void saveEntity(YwYnJzfqwczzPfsn entity);

	public void updateAcceptNo(YwYnJzfqwczzPfsn form);

	/**
	 * 获取是哪个区生成案件
	 * @param id
	 * @return
	 */
	public String getArea(Long id);

	/**
	 * 获取复函的模版规定
	 * @return
	 */
	public List<ReplyTemplate> getReplyTemplates();
	/*
	 * 查询单个模版
	 */
	public ReplyTemplate getReplyTemplate(String id,String type);
	/**
	 * 保存复函规定的模版
	 * @param templateId
	 * @param content
	 */
	public void saveReplyTemplate(String templateId, String content);
}
